package com.wzh.design.strategy.demo3;

/**
 * @description:
 * @author: WZH
 * @time: 2021/5/26 9:04
 */
public abstract class Person {

    SpecificSkill specificSkill;

    SpecificBehavior specificBehavior;


    //名字
    public String name;

    //年龄
    public Integer age;

    //身高
    public Double high;



    public void  commonSkill1(){
        System.out.println("吃饭，上班，走路，睡觉");
    }


    public void  commonSkill2(){
        System.out.println("学习，");
    }

    //特有技能
    public void  uniqueSkill(){
        specificSkill.mySkill();
        specificSkill.noThing();
    }

    //特有行为
    public void uniqeBehavior(){
        specificBehavior.myBehavior();
    }


    //留给自行补充
    public abstract void hobby();


    public void setSpecificSkill(SpecificSkill specificSkill) {
        this.specificSkill = specificSkill;
    }

    public void setSpecificBehavior(SpecificBehavior specificBehavior) {
        this.specificBehavior = specificBehavior;
    }
}
